<?php
/**
 * OaNoticeTaskReply数据模型
 */
class OaNoticeTaskReplyTable {
	// 数据表模型配置
	public $config = [
			'name' => 'oa_notice_task_reply',
			'title' => '任务督办回复',
			'search_key' => '',
			'add_button' => 1,
			'del_button' => 1,
			'search_button' => 1,
			'check_all' => 1,
			'list_row' => '',
			'addon' => 'OaSystem'
	];
	
	// 列表定义
	public $list_grid = [ ];
	
	// 字段定义
	public $fields = [
			'noticeid' => [
					'title' => '公告栏ID',
					'type' => 'num',
					'field' => 'int(10) NOT NULL',
					'is_show' => 1,
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'pid' => [
					'title' => '父ID',
					'type' => 'num',
					'field' => 'int(10) NOT NULL',
					'is_show' => 1,
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'comment' => [
					'title' => '回复内容',
					'type' => 'textarea',
					'field' => 'text NULL',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			],
			'fileids' => [
					'title' => '上传文件',
					'type' => 'string',
					'field' => 'varchar(255) NULL',
					'is_show' => 1,
					'validate_file_size' => 10485760,
					'placeholder' => '请输入内容'
			],
			'receiver' => [
					'title' => '接收人',
					'type' => 'string',
					'field' => 'varchar(255) NOT NULL',
					'remark' => '接收信息的人列表，Json',
					'is_show' => 1,
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'sender' => [
					'title' => '发送者',
					'type' => 'num',
					'field' => 'int(10) NOT NULL',
					'is_show' => 1,
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'time' => [
					'title' => '时间戳',
					'type' => 'datetime',
					'field' => 'int(10) NOT NULL',
					'is_show' => 1,
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'is_read' => [
					'title' => '已读',
					'type' => 'num',
					'field' => 'int(10) NULL',
					'value' => 0,
					'remark' => '督办领导 看员工到状态  0未读， 1已读，2未处理（新消息），3已读未处理，4已处理； 员工看到状态 0新消息，1已读，2未处理，3未处理，4已处理，5已完成',
					'is_show' => 1,
					'is_must' => 0
			]
	];
}	